package com.atguigu.tingshu.common.threadpool;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "app.threadpool")
public class ThreadPoolProperties {
    private Integer corePoolSize = 2 * Runtime.getRuntime().availableProcessors();
    private Integer maxPoolSize = 4 * Runtime.getRuntime().availableProcessors();
    private Integer queueSize = 50;
}
